const update = require("./update-ip")
const Schedule = require("node-schedule")
const koa = require("koa")

const app = new koa()

function task(){
    console.log("DNS动态动态更新服务已开启")
    // Schedule.scheduleJob("*/1 * * * *",()=>{
    //     update()
    // })

    setInterval(()=>{
        update()
    },60000)

}

task()

app.listen(3000)